Skip to content

ENH: Add PyTorch data handling methods #10

Merged
merged 12 commits into from
Sep 22, 2023
Merged

ENH: Add PyTorch data handling methods #10

merged 12 commits into from
Sep 22, 2023

Conversation

deshmukg
Copy link
Contributor

@deshmukg deshmukg commented Sep 19, 2023

  • Closes Create PyTorch Data and Dataset classes #6.
  • Added AtomsDataset and AtomsDatapoints classes to load atomic structures, convert into graphs, and store them for future retrieval. The former is useful when targets are available, the latter for unseen structures.
  • Added load_dataset and load_datapoints functions to load the corresponding PyTorch Dataset classes.
  • Removed pad argument from everywhere. Now, if max_atoms is None (default behavior), graph is not padded.
  • Removed n_partitions argument from partition_structure. Number of partitions are now automatically calculated based on the number of z cutoffs provided.

@deshmukg deshmukg marked this pull request as ready for review September 22, 2023 16:30
@deshmukg deshmukg merged commit 836799a into master Sep 22, 2023
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create PyTorch Data and Dataset classes
1 participant